<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
    <!-- <mate name="flexibel" content="initial-drl=2"/> -->
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-touch-fullscreen" content="yes">
    <meta name="format-detection" content="telephone=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge,chrome=1">
    <!--留存统计-->
    <script type="text/javascript" src="https://hy.yixueqm.com/zhiming/index.php/Home-Interface-remain?typeName=CY&nickName=八字财运&channel=<!--{$Think.cookie.channel}-->&uid=<!--{$Think.cookie.uid}-->"></script>

    <title>十年大运</title>
    <!-- <script>!function(e){function t(a){if(i[a])return i[a].exports;var n=i[a]={exports:{},id:a,loaded:!1};return e[a].call(n.exports,n,n.exports,t),n.loaded=!0,n.exports}var i={};return t.m=e,t.c=i,t.p="",t(0)}([function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=window;t["default"]=i.flex=function(e,t){var a=e||100,n=t||1,r=i.document,o=navigator.userAgent,d=o.match(/Android[\S\s]+AppleWebkit\/(\d{3})/i),l=o.match(/U3\/((\d+|\.){5,})/i),c=l&&parseInt(l[1].split(".").join(""),10)>=80,p=navigator.appVersion.match(/(iphone|ipad|ipod)/gi),s=i.devicePixelRatio||1;p||d&&d[1]>534||c||(s=1);var u=1/s,m=r.querySelector('meta[name="viewport"]');m||(m=r.createElement("meta"),m.setAttribute("name","viewport"),r.head.appendChild(m)),m.setAttribute("content","width=device-width,user-scalable=no,initial-scale="+u+",maximum-scale="+u+",minimum-scale="+u),r.documentElement.style.fontSize=a/2*s*n+"px"},e.exports=t["default"]}]); flex(100, 1);</script> -->
    <!--[if lt IE 9]>  
        <script src="http://cdn.bootcss.com/html5shiv/r29/html5.js"></script>  
    <![endif]-->
    <link rel="stylesheet" href="__PUBLIC__/css/YD_calendar.min.css">
    <link rel="stylesheet" href="__PUBLIC__/css/ZM_share.css" />
    <script src="__PUBLIC__/js/YD_calendar.min.js"></script>



    <script src="__PUBLIC__/js/jquery.min.js"></script>
    <script src="__PUBLIC__/js/layer/layer.js"></script>
    <script type="text/javascript" src="__PUBLIC__/js/rem.js"></script>
    <script src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>

    <!--<script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan style='display:none;' id='cnzz_stat_icon_1273421553'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s22.cnzz.com/z_stat.php%3Fid%3D1273421553%26show%3Dpic' type='text/javascript'%3E%3C/script%3E"));</script>-->
    <script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan style='display:none;' id='cnzz_stat_icon_1273421553'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s19.cnzz.com/z_stat.php%3Fid%3D1273421553' type='text/javascript'%3E%3C/script%3E"));</script>

    <script type="text/javascript">
        var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan style='display:none;' id='cnzz_stat_icon_"+<!--{$channelID}-->+"'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s19.cnzz.com/z_stat.php%3Fid%3D"+<!--{$channelID}-->+"' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <style>
        body{background-color:#A51F2A;/* font-family:"微软雅黑" */}
        .master{padding: 7px;background-color: #A51F2A;}
        .zm_form .zm_form_wrap{padding:7px;margin:0;}
        .zm_form .zm_form_wrap ul{background-color: #FEF8EE;border-color: #e0caab;border-radius:8px;}
        .zm_form .zm_form_wrap ul li{border-color: #f3d59f;}
        .cs_btn{background:#FC9424;font-size:24px;color:#442b2b;letter-spacing:2px;}
        .form_bottom{color:#ffffff;}
        .form_bottom b {color: #fcb005;padding: 0 5px;}
        .form_bottom a {color: #fcb005;text-decoration:underline;padding-left: 20px;}
		.f_left{color:#8a1601;font-weight: bold;margin-right: 10px;float: left;font-size: 15px;}
		.form_auto input{
			font-weight: bold;
			font-size: 15px;
		}
        .pay_know{margin:0px 7px 0px;background-color:#A51F2A;}
        .pay_know .title{
            text-align: center;
            margin:0 46px 20px;
            height:35px;
            line-height: 35px;
            font-size:12px;
            background-color:#945A29;
            color:#ffffff;
        }
		.row{height:35px;}
        .imgBox{display: flex;display: -webkit-flex;align-items: center;justify-content: center;margin-top:22px;margin-bottom: 25px;}
        .pay_know .msguser1{width:80%;height:64px;margin:0 5px 0 0}
        .msguser{width:57px;height:57px;}
        .pay_know .mgt30{margin: 30px 46px 20px;}
        .hot_cs{border-bottom:3px solid #E0E0E0;border: none;margin:0 7px 7px;}
        .hot_title{background-color:#e3a25a;}
        .hot_cs .hot_ul{border:none;background-color:#301005;}
        .hot_cs .hot_ul li p{color:#ffffff;}
        .footer_severs{background-color:#A51F2A;color:#ffffff;}
        .pb20{padding:0 7px;}
    </style>
</head>
<body>
    <include file="Public/header"/>
    <div class="zm_banner">
        <img src="__PUBLIC__/<!--{$imgPath}-->/sndy_img/banner.png" width="100%" />
    </div>
    <div class="master" id="scrollT">
        <img src="__PUBLIC__/<!--{$imgPath}-->/sndy_img/zl.png" width="100%"/>
    </div>
    <form id="_form" class="zm_form _form1" action="<!--{:U('Sndy/zhifu','',false)}-->" method="post" id="forms">
        <div class="zm_form_wrap">
            <ul>
                <li>
                    <div class="f_left">您的性别</div>
                    <div class="form_auto">
                        <span class="on" id="but_man" data-value="1">
                            <i></i>
                            <font>男</font>
                        </span>
                        <span id="but_woman" data-value="0">
                            <i></i>
                            <font>女</font>
                        </span>
                        <input class='gender1' type="hidden" id="sex" name="gender" value="1"/>
                    </div>
                </li>
                <li>
                    <div class="f_left">出生日期</div>
                    <div class="form_auto">
                        <div type="text" class="Js_date" data-date="1985-04-18-7" id="datetime" data-id="birthday1">请选择你的出生日期</div>
                        <input type="hidden" id="birthday1" name="birthday"  value="" >
                    </div>
                </li>
                <li>
                    <div class="f_left">您的姓名</div>
                    <div class="form_auto">
                        <input type="text" class="bg_no" placeholder="匿名（可不填）" id="username1" name="username" />
                    </div>
                </li>
            </ul>
        </div>
        <a href="javascript:;" class="cs_btn type1">立即测算</a>
        <div class="form_bottom">
            已有<b><!--{$Think.cookie.sndycs}--></b>人查看十年大运详批 <b>99%</b>好评
            <p><a href="/zhiming/index.php/Home-Index-mycesuan" class="oldtm">查看历史订单</a></p>
        </div>
    </form>
    <div class="pay_know">
		<p class="row"></p>
        <p>
            <img src="__PUBLIC__/<!--{$imgPath}-->/sndy_img/1.png" width="100%"/>
        </p>
        <p class="row"></p>
        <p>
            <img src="__PUBLIC__/<!--{$imgPath}-->/sndy_img/2.png" width="100%"/>
        </p>
		<p class="row"></p>
        <p>
            <img src="__PUBLIC__/<!--{$imgPath}-->/sndy_img/3.png" width="100%"/>
        </p>
		<p class="row"></p>
		<p>
		    <img src="__PUBLIC__/<!--{$imgPath}-->/sndy_img/4.png" width="100%"/>
		</p>
		<p class="row"></p>
		<p>
		    <img src="__PUBLIC__/<!--{$imgPath}-->/sndy_img/5.png" width="100%"/>
		</p>
		<p class="row"></p>
		<p>
		    <img src="__PUBLIC__/<!--{$imgPath}-->/sndy_img/6.png" width="100%"/>
		</p>
		<p class="row"></p>
    </div>
	
	<form id="_form" class="zm_form _form2" action="<!--{:U('Sndy/zhifu','',false)}-->" method="post" id="forms">
	    <div class="zm_form_wrap">
	        <ul>
	            <li>
	                <div class="f_left">您的性别</div>
	                <div class="form_auto">
	                    <span class="on" id="but_man2" data-value="1">
	                        <i></i>
	                        <font>男</font>
	                    </span>
	                    <span id="but_woman2" data-value="0">
	                        <i></i>
	                        <font>女</font>
	                    </span>
	                    <input class='gender2' type="hidden" id="sex2" name="gender" value="1"/>
	                </div>
	            </li>
	            <li>
	                <div class="f_left">出生日期</div>
	                <div class="form_auto">
	                    <div type="text" class="Js_date" data-date="1985-04-18-7" id="datetime2" data-id="birthday2">请选择你的出生日期</div>
	                    <input type="hidden" id="birthday2" name="birthday"  value="" >
	                </div>
	            </li>
	            <li>
	                <div class="f_left">您的姓名</div>
	                <div class="form_auto">
	                    <input type="text" class="bg_no" placeholder="匿名（可不填）" id="username2" name="username" />
	                </div>
	            </li>
	        </ul>
	    </div>
	    <a href="javascript:;" class="cs_btn type2">立即测算</a>
	    <div class="form_bottom">
	        已有<b><!--{$Think.cookie.sndycs}--></b>人查看十年大运详批 <b>99%</b>好评
            <p><a href="/zhiming/index.php/Home-Index-mycesuan" class="oldtm">查看历史订单</a></p>
	    </div>
	</form>
	
    <!-- 提示收藏 -->
    <include file="Public/index_SC" />
    <!-- 热门测算 -->
   <div class="hot_cs">
       <include file="Public/zhiming" />
    </div>

    <!-- 脚 -->
    <footer class="footer_severs">
        <include file="Public/bottom-index" />
    </footer>

    <div class="fiex_bt" id="fiex">
        <a href="javascript:;">我也算算</a>

    </div>
</body>

    <script>
        console.log(window.location.href);
        //测算底部悬浮
        $(function(){
            var topShow=$(".cs_btn");
            if(topShow.length){
                var topShow=topShow.offset().top;
                var testBtn=$("#fiex");
                $(window).scroll(function(){
                    var wt=$(window).scrollTop();
                    wt>topShow?(testBtn.fadeIn(),$('.footer_severs').css('padding-bottom','1.2rem')):(testBtn.fadeOut(),$('.footer_severs').css('padding-bottom','0.4rem'));
                });
                // goTop
                $('#fiex').on('click',function(){$('html,body').animate({scrollTop:$('#scrollT')[0].offsetTop},500)});

                $.getJSON("<!--{:U('Index/indexXfan','',false)}-->",{csName:'CY'},function(data){//首页-悬浮按钮统计
                });
            }
        });

        var calendar1 = new lCalendar().init('#datetime');//
		
		var calendar2 = new lCalendar().init('#datetime2');
        
        $(".cs_btn").on('click',function(e){
            $.getJSON("<!--{:U('Index/indexLjcs','',false)}-->",{csName:'CY'},function(data){//首页-立即测算统计
            });
            var type = e.target.className.match(/\d/)[0]
            var nameid = '#username'+type
            var sexid = '.gender'+type
            var bid = '#birthday'+type

            if($(nameid).val() == ""){
                $(nameid).val('匿名');
                // layer.msg("请输入您的名字");
                // return false;
            }else if($(nameid).val().length < 2){
                    layer.msg("姓名长度不能少于2");
                    return false;
            }

            var patrn= /[\u4E00-\u9FA5]|[\uFE30-\uFFA0]/gi;
            if(!patrn.exec($(nameid).val())){
                layer.msg("请输入中文名字");
                return false;
            }

            if($(bid).val() == ""){
                layer.msg("请选择生时");
                return false;
            }

            var oli = layer.load();
            setTimeout(function(){
                layer.closeAll('loading');
                layer.msg('订单提交成功', {icon: 1});
                setTimeout(function(){
                    var id = '._form'+type
                    $(id).submit();
//                    $('#_form').submit();
                },1300);
            },1000);
        });

        // 选择按钮
        var obut_man = document.getElementById('but_man');
        var obut_woman = document.getElementById('but_woman');
        var osex = document.getElementById('sex');
            obut_man.onclick = function(){
                obut_man.classList.add("on");
                osex.value = 1;
                obut_woman.classList.remove('on');
            }
            obut_woman.onclick = function(){
                obut_woman.classList.add("on");
                osex.value = 0;
                obut_man.classList.remove('on');
            };

            // 选择按钮
        var obut_man2 = document.getElementById('but_man2');
        var obut_woman2 = document.getElementById('but_woman2');
        var osex2 = document.getElementById('sex2');
                obut_man2.onclick = function(){
                    obut_man2.classList.add("on");
                    osex2.value = 1;
                    obut_woman2.classList.remove('on');
                }
                obut_woman2.onclick = function(){
                    obut_woman2.classList.add("on");
                    osex2.value = 0;
                    obut_man2.classList.remove('on');
                };

    </script>

</html>
